package com.example.mapper;

import java.util.List;

import com.example.model.User;

import org.springframework.stereotype.Repository;

/*
 * @Author: wangc
 * @Date: 2020-08-13 19:23:34
 * @LastEditTime: 2020-08-22 11:39:27
 * @Description: 
 */
//@Mapper         //声明是一个Mapper,与springbootApplication中的@MapperScan二选一写上即可
@Repository
public interface UserMapper {
    /**获取所有用户信息 */
    List<User> getAllUser();
    /**检查id和密码是否正确 
     * @param password*/
    User checkLogin(String username, String password);

    int register(User user);

    User getUserbyUsername(String username);

    int deleteUserById(int id);
}